@font-color: #282828;
@light-color: #666666;
@red-color: #c50000;


/* 多行显示省略号，less写法，@i是行数 */
.ellipsis-line(@n,@i:2) when (@i =< @n){
  .ellipsis-line-@{i}{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: @i;
  }
  .ellipsis-line(@n,(@i + 1));
}
.ellipsis-line(4);

/*按钮*/
.btn{
  color: #fff;
  border-radius: 6px;
  height: 80px;
  line-height: 80px;
  font-size: 24px;
  border: 0;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  appearance: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.btn-small{
  display: inline-block;
  padding: 0 30px;
  &:extend(.btn);
}
.btn-middle{
  display: inline-block;
  padding: 0 100px;
  &:extend(.btn);
}
.btn-large{
  display: block;
  width: 100%;
  &:extend(.btn);
}
.btn-primary{
  background-color: #04be02;
  &:active{
    color: rgba(255, 255, 255, 0.6);
    background-color: #038c01;
  }
}
.btn-danger{
  background-color: #CE3C39;
  &:active{
    color: rgba(255, 255, 255, 0.6);
    background-color: #E64340;
  }
}
.btn-disabled{
  background-color: #c8c9cb;
  cursor: not-allowed;
}


